package com.sky.mapper;

import com.sky.entity.AddressBook;
import com.sky.result.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    void insert(AddressBook addressBook);

    void noIsDefault(AddressBook addressBook);

    List<AddressBook> list(@Param("userId")Long userId);

    AddressBook listDefault(AddressBook addressBook);

    AddressBook getAddress(AddressBook addressBook);

    void delete(AddressBook addressBook);

    void update(AddressBook addressBook);

    void updateIsDefault(AddressBook addressBook);
}
